package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 学生续报
 * </p>
 *
 * @author hpiggy
 * @since 2025-06-19
 */
@TableName("student_grade_continue")
@ApiModel(value = "StudentGradeContinue对象", description = "学生续报")
@Data
public class StudentGradeContinue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("报读季度")
    private Integer quarterNum;

    private Long studentId;

    @ApiModelProperty("对应学校id")
    private Long schoolId;

    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("1精品课，2智能课，3刷题班")
    private Integer lessonType;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("是否预分班，0否，1添加了预分班，2添加了预分班的续报成功，3没有添加预分班的续报成功，4预分班的续报失败")
    private Integer isPresort;

    @ApiModelProperty("开始时间")
    private LocalDate startDate;

    @ApiModelProperty("截止时间")
    private LocalDate endDate;

    //@TableLogic
    private Integer deleted;

    @ApiModelProperty("created_at")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
